## 可以导出所有 路由 router
from fastapi import APIRouter
from app.core.config import settings

## 基础路由
from app.api.base.auth import router as auth_router
from app.api.base.base import router as base_router
from app.api.base.user import router as user_router

## 家庭功能模块路由
from app.api.v1.family import family_router
## 系统级模块路由
from app.api.v1.origin import origin_router


##3 示例性质的路由 作用不大 不要了
# from app.api.example.system import router as system_router
# from app.api.example.database import router as database_router

from app.api.v1.system import system_router

api_router = APIRouter()

# 注册基础路由
api_router.include_router(user_router, prefix="/v1", tags=["用户与角色模块"])
api_router.include_router(auth_router, prefix="/v1/auth", tags=["用户认证示例"])
api_router.include_router(system_router, prefix="/v1/system", tags=["系统功能模块"])
api_router.include_router(base_router, prefix="/v1/base", tags=["系统基础模块"])

# 注册家庭功能模块路由
api_router.include_router(family_router, prefix="/v1/family", tags=["家庭功能模块"])

# 注册原系统模块路由  
api_router.include_router(origin_router, prefix="/v1/origin", tags=["原系统模块"])

# 数据库管理API 示例没啥用 。
# if settings.enable_database:
#     api_router.include_router(database_router, prefix="/v1/database", tags=["数据库管理模块"])



__all__ = ["api_router"]

